function roleAdd(){
	if (!Validator.Validate(document.getElementById("form1"), 1)) {
		return;
	}
	$.ajax({ 
	 	url: ctp + "/roleController/roleSave.shtml",
	    data: $('#form1').serialize(),
		type : 'POST',
		async:false, 
		success : function(result) {  
			if(result=="") {  
				jalert9("添加成功！");
				var curr=$("#curr",window.parent).val();
				if(typeof(curr)=="undefined"||curr=="undefined"){
					curr=1;
				}
				setTimeout('window.parent.searchData('+curr+');',WARN_TIME_OUT);
				setTimeout("window.parent.closeDialogWin()",WARN_TIME_OUT);
			} 		  
			else{     
				jalert(result);   
			} 
  		}
	});

} 



